package com.net.shop.car.manager.api.volley.request.jifen;

import org.json.JSONException;
import org.json.JSONObject;

import com.net.shop.car.manager.api.volley.Request;
import com.net.shop.car.manager.utils.Constants;

/**
 * @author Deve 
 * return success or error msg
 *
 */
public class JifenToService extends Request {

	private String memberId;
	private String sellerId;
	private String goodId;
	private String goodName;
	private long vb;
	public JifenToService(String memberId,String sellerId,String goodId,String goodName,long vb) {
		super(Constants.JIFEN_TO_SERVICE);
		this.memberId = memberId;
		this.sellerId = sellerId;
		this.goodId = goodId;
		this.goodName = goodName;
		this.vb = vb;
	}

	@Override
	public void extensionJSON(JSONObject jsonObject) {
		try {
			jsonObject.put("memberid", memberId);
			jsonObject.put("sellerid", sellerId);
			jsonObject.put("goodid", goodId);
			jsonObject.put("goodname", goodName);
			jsonObject.put("vb", vb);
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
